
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Feed;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Feed entities.
 * 
 */
public interface FeedDAO extends JpaDao<Feed> {

	/**
	 * JPQL Query - findFeedByMemo
	 *
	 */
	public Set<Feed> findFeedByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByMemo
	 *
	 */
	public Set<Feed> findFeedByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByPrimaryKey
	 *
	 */
	public Feed findFeedByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByPrimaryKey
	 *
	 */
	public Feed findFeedByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByMemoContaining
	 *
	 */
	public Set<Feed> findFeedByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByMemoContaining
	 *
	 */
	public Set<Feed> findFeedByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByTime
	 *
	 */
	public Set<Feed> findFeedByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findFeedByTime
	 *
	 */
	public Set<Feed> findFeedByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllFeeds
	 *
	 */
	public Set<Feed> findAllFeeds() throws DataAccessException;

	/**
	 * JPQL Query - findAllFeeds
	 *
	 */
	public Set<Feed> findAllFeeds(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFeedById
	 *
	 */
	public Feed findFeedById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findFeedById
	 *
	 */
	public Feed findFeedById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}